﻿@model CanDichVu.Db.Post
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}


@if (Model != null)
{
    ViewBag.Title = Model.Meta_Title;
   
    <div class="ads_on_page">
    </div>
    
    <div class="breadcrumbs">
        <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
            Vị trí bạn đang xem : <span typeof="v:Breadcrum"><a itemprop="url" href="/" title="Rao vặt dịch vụ" rel="v:url" property="v:title">
                <span itemprop="title"><b>www.candichvu.com</b></span></a> › </span>
            <span typeof="v:Breadcrum"><a itemprop="url" href="/mua-ban-nha-dat" title=" Rao vặt Bất động sản" rel="v:url" property="v:title">
                <span itemprop="title"><b>Nhà đất</b></span></a> › </span><span typeof="v:Breadcrum">
                    <a itemprop="url" href="/mua-ban-nha-dat/cho-thue/2" title="Cần bán" rel="v:url" property="v:title"><span itemprop="title">Cho Thuê</span>
                    </a>› </span><span typeof="v:Breadcrum"><a itemprop="url" href="/mua-ban-nha-dat/cho-thue/nha-rieng/8/2" title="Chung cư" rel="v:url" property="v:title"><span itemprop="title">Nhà riêng </span></a>›
                    </span><span typeof="v:Breadcrum"><a itemprop="url" href="/mua-ban-nha-dat/cho-thue/nha-rieng/ho-chi-minh/8/2/29" title="Hồ Chí Minh" rel="v:url" property="v:title"><span itemprop="title">Hồ Chí Minh</span>
                    </a>› </span><span typeof="v:Breadcrum"><a itemprop="url" href="/mua-ban-nha-dat/cho-thue/nha-rieng/ho-chi-minh/quan-10/8/2/29/10" title="Quận 10" rel="v:url" property="v:title"><span itemprop="title">Quận 10</span>
                    </a></span>
        </div>
    </div>
    <div class="clear"></div>
    
    <div class="Right_page_details">
        <div class="main-l">
            <div class="box-home">
                <h1 class="ttsale">@Model.Title</h1>
                <div class="Gallery">
                    <div id="gallery" class="ad-gallery">
                        <div class="ad-image-wrapper">
                            <div class="ad-image" style="width: 300px; top: 0px; left: 0px;">
                                <img itemprop="image" src="@Model.AnhDaiDien" width="300"></div>
                        </div>
                    </div>
                </div>
                <div class="infodetail">
                    <ul class="listinfo">
                        <li><span class="left">Mã Số:</span> <span class="right" itemprop="radius">@Model.Maso</span>
                        <li><font class="price">Giá :<span itemprop="price"> @Model.Gia </span></font> </li>
                        </li>
                        
                        <li><span class="left">Nơi đăng:</span> <span class="right"></li>
                        <li><span class="left">Hình Thức:</span> <span class="right">@Model.HinhThuc</span>
                        </li>
                        <li><span class="left">Tình Trạng:</span> <span class="right" itemprop="availability">@Model.TinhTrang</span>
                        </li>
                    </ul>
                    <ul class="btinfo">
                        <li><span class="left">Ngày Đăng :</span> <span class="right" style="line-height: 25px;" itemprop="date">@string.Format("{0:dd.MM.yyyy}", Model.NgayDang)</span>
                        </li>
                        <li>
                            <div class="bgview">
                                <span class="view">4 người vừa xem</span>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="box-action">
                    <div class="bt-action btnfirst">
                        <span class="contact">Tran Tuan Anh :
                            0986610644
                        </span>
                    </div>
                    <div class="bt-action">
                        <span id="save-ann-92"><a rel="nofollow" class="save" href="javascript:void(0);" onclick="save_ann('92');">Theo dõi</a> </span>
                    </div>
                    <div class="bt-action">
                        <a rel="nofollow" href="javascript:void(0);" class="share" id="shareLink"><b>Chia sẻ</b></a>
                        <div id="shareForm">
                            <ul class="btshare">
                                <li class="i-mail"><a rel="nofollow" href="javascript:void(0)" onclick="openBox('light-group');">
                                    Gửi Email</a></li>
                                <li class="i-facebook"><a rel="nofollow" href="javascript:;" onclick="share_facebook();">
                                    Chia sẻ trên Facebook</a></li>
                                <li class="i-twitter"><a rel="nofollow" href="javascript:;" onclick="share_twitter();">
                                    Chia sẻ trên Twitter</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="bt-action">
                        <a href="javascript:void(0)" class="print" rel="nofollow"><b>In</b></a></div>
                </div>
               <div class="clear"></div>
                <ul class="tabdetail">
                    <li class="current"><a href="javascript:;">Thông tin tổng quan</a></li>
                </ul>
                <div class="clear"></div>
                <div class="details_post">

                    @Html.Raw(Model.Noidung)

                </div>
                <ul class="tabdetail">
                    <li class="current"><a href="javascript:;">Thông tin vị trí</a></li>
                </ul>
                <div class="clear"></div>
                <div class="maps_Details">

                    <ul class="listdt">
                        <li>
                            <div id="mapForm" style="width:650px; height: 400px">
                            <div class="b-map" id="box-map" style="width:650px; height:340px;">
                                <div class="boxmap">
                                    <input type="hidden" id="clat_detils" name="longlat" value="@Model.clat" />
                                    <input type="hidden" id="clong_detils" name="longlat" value="@Model.clong" />
                                    <div id="noidung_area_maps" style="display:none">@Html.Raw(Model.Des_on_Maps)</div>
                                    <div id="maps_company" style="width:650px; height:340px; margin-bottom:10px"></div>
                                </div>
                            </div>
                             <div class="clear"></div>
                            <div class="check-adr">
                                <span>
                                    Bản đồ trên chỉ mang tính tương đối, vui lòng liên lệ với chủ quản để biết chính xác vị trí
                                </span>
                            </div>
                                <script type="text/javascript">
                                    $(document).ready(function () {
                                        initialize_maps_details($("#clat_detils").val(), $("#clong_detils").val(), $("#noidung_area_maps").html());
                                    });

                                </script>

                            <div style="height:10px">&nbsp;</div>
                            <div class="arrowcrr" style="height:7px">&nbsp;</div>
                        </div>
                        </li>
                    </ul>

                </div>

                <div class="mytoolOnPost">

                    @Html.Action("MyToolOnPost","Post", new {PostId = Model.Id, UserId = Model.UserId})

                </div>

            </div>
        </div>
        <div class="sidebarDetails">
            <div class="b-right">
                    <div class="ttsidebar"><h2>Thông tin liên hệ</h2></div>
                <div class="b-contact">
                    @Html.Action("InfoAccountPost_Details","Account", new {accountid = Model.UserId} )
                </div>
            </div>
        </div>
    </div>
    
    <div class="left_page_Details"></div>
    
    
    <div class="clear"></div>
}
else
{
    ViewBag.Title = "Không tìm thấy tin rao vặt";
    <h2>Tin rao vặt không tồn tại</h2>
}




